// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Serverless.Fluent;
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Serverless.Nodes;

public sealed partial class CgroupCpu
{
	/// <summary>
	/// <para>
	/// The period of time, in microseconds, for how regularly all tasks in the same cgroup as the Elasticsearch process should have their access to CPU resources reallocated.
	/// </para>
	/// </summary>
	[JsonInclude, JsonPropertyName("cfs_period_micros")]
	public int? CfsPeriodMicros { get; init; }

	/// <summary>
	/// <para>
	/// The total amount of time, in microseconds, for which all tasks in the same cgroup as the Elasticsearch process can run during one period <c>cfs_period_micros</c>.
	/// </para>
	/// </summary>
	[JsonInclude, JsonPropertyName("cfs_quota_micros")]
	public int? CfsQuotaMicros { get; init; }

	/// <summary>
	/// <para>
	/// The <c>cpu</c> control group to which the Elasticsearch process belongs.
	/// </para>
	/// </summary>
	[JsonInclude, JsonPropertyName("control_group")]
	public string? ControlGroup { get; init; }

	/// <summary>
	/// <para>
	/// Contains CPU statistics for the node.
	/// </para>
	/// </summary>
	[JsonInclude, JsonPropertyName("stat")]
	public Elastic.Clients.Elasticsearch.Serverless.Nodes.CgroupCpuStat? Stat { get; init; }
}